package com.example.team.rest;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
 *      由于需要使用多数据源，所以禁掉DataSourceAutoConfiguration
 * EnableEurekaClient 服务提供者
 */
@EnableEurekaClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class TeamRestApplication{

    public static void main(String[] args) {
        SpringApplication.run(TeamRestApplication.class, args);
    }
}
